home *** CD-ROM | disk | FTP | other *** search
/ Programmer Power Tools / Programmer Power Tools.iso / progjrn / pj_7_3b.arc / PWCOMMON.ARC / TTYCLS.H < prev   
C/C++ Source or Header  |  1989-01-24  |  921b  |  41 lines

  1. #ifdef WINDOWS
  2. #define HPS HDC
  3. #endif
  4.  
  5. /* 
  6.  * this structure contains most of the information needed
  7.  * to use the tty window.
  8.  */
  9.  
  10. struct TTYWND {
  11.     HWND hWnd;
  12. #ifdef WINDOWS
  13.     POINT Pos;
  14.     HANDLE hVidBuf;
  15. #else
  16.     POINTL Pos;
  17. #endif
  18.     BYTE *pVidBuf;
  19.     short CWidth, CHeight;
  20.     short Top, Left;
  21.     short Width, Height;
  22.     short MaxLines,MaxCols;
  23.     short MaxLineLength;
  24.     short CurLineOffset;
  25.     short oCurrentLine;
  26.     short oVidLastLine;
  27.     short FontIndex;
  28.     BOOL LFonCR;
  29.     BOOL CRonLF;
  30.     BOOL Wrap;
  31.     BYTE ebitmask;
  32. };
  33. typedef struct TTYWND *PTTYWND;
  34.  
  35. /* shared function declarations */
  36. InitTTYWindow(PTTYWND,short,short,short,short,short,short,
  37.             BOOL,BOOL,BOOL,short,BYTE);
  38. int NEAR TTYDisplay(PTTYWND pTTYWnd, short len, BYTE *str);
  39. void NEAR TTYWndPaint(PTTYWND pTTYWnd, HPS hPS, short top, short bottom);
  40. void NEAR TTYClear(PTTYWND pTTYWnd);
  41.